<!-- export_paper.html -->
{% extends 'base.html' %}

{% block content %}
<div class="container mt-5">
    <h2>导出试卷</h2>
    <form method="POST" action="{{ url_for('download_paper') }}">
        <div class="form-group">
            <label for="paperSelect">选择试卷：</label>
            <select class="form-control" id="paperSelect" name="paper_id" required>
                <option value="">请选择试卷</option>
                {% for paper in papers %}
                <option value="{{ paper[0] }}">{{ paper[1] }}</option>
                {% endfor %}
            </select>
        </div>
        <button type="submit" class="btn btn-primary">导出</button>
    </form>
</div>
{% endblock %}
